<template>
  <span>120天内在COLLECT平台的总活跃度：{{sum}}</span>
</template>

<script>
import {getActivityCount} from "@/api/worker";
import * as echarts from 'echarts'

export default {
  name: "ActivityView",
  mounted() {
    this.initDate();
  },
  data() {
    return {
      sum: 0
    }
  },
  created() {

  },
  methods: {
    initDate: function() {
      getActivityCount(sessionStorage.getItem("userid")).then(response => {
        this.sum = response.data.sum;
      });
    }
  }
}
</script>

<style scoped>

</style>
